var script = document.createElement("script");
script.setAttribute("type", "text/javascript");
script.setAttribute("src", "general_functions.js");
document.getElementsByTagName("head")[0].appendChild(script);
	
function load(page, type, maTS)
{
	// type = 0 : thí sinh
	// type = 1 : quản trị
	document.getElementById("dsbaithi").innerHTML = "<p align='center'>Đang tải danh sách bài thi ...</p>";
	xmlhttp = createXMLHttpRequest();
	xmlhttp.onreadystatechange=function()
  	{
  		if (xmlhttp.readyState==4 && xmlhttp.status==200)
    	{
			document.getElementById("dsbaithi").innerHTML = xmlhttp.responseText;
    	}
  	}
	var serverURL = "thongke_load.jsp?page=" + page + "&type=" + type + "&mats=" + maTS + "&t=" + (new Date()).getTime();
	xmlhttp.open("GET",serverURL,true);
	xmlhttp.send();
}
